import request from '@/utils-shop/request'

// api地址
const api = {
  storeInfo: 'store/info',
  storeData: 'home/data',
  apply: 'store/apply',
  statistics: 'statistics.data/data'
}

// 店铺信息
export const info = (param, option) => {
  return request.get(api.storeInfo, param)
}

// 店铺数据
export const data = (param, option) => {
  return request.get(api.storeData, param)
}

// 店铺数据统计
export const statistics = (param, option) => {
  return request.get(api.statistics, param)
}

// 店铺数据统计
export const apply = (data) => {
  return request.post(api.apply, { form: data })
}
